package com.xish.api;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by zhanghuyi on 15/7/28.
 */
public class FormParser {

    public String readRequestParam(HttpServletRequest request, String paramName, String defaultValue) {
        String value = request.getParameter(paramName);
        if (value == null) {
            value = defaultValue;
        }
        return value;
    }
}
